package com.truckdispatching.http.base;

public class HttpException extends Exception {

	protected int mErrorCode = -1;
	protected String mErrorMessage = "网络请求异常";

	public HttpException(int code) {
		this.mErrorCode = code;
	}

	public HttpException(int code, String message) {
		this.mErrorCode = code;
		this.mErrorMessage = message;
	}

	public int getErrorCode() {
		return mErrorCode;
	}

	public String getErrorMessage() {
		return mErrorMessage;
	}
}
